﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EShowArea extends Object
    {
        public var __value:int;
        public static const _EShowAreaChat:int = 1;
        public static const _EShowAreaMiddle:int = 2;
        public static const _EShowAreaMiddleTop:int = 4;
        public static const _EShowAreaHistory:int = 8;
        public static const _EShowAreaTrumpet:int = 16;
        public static const _EShowAreaExplorer:int = 32;
        public static const _EShowAreaRightDown:int = 64;
        public static const _EShowAreaMiddleDown:int = 128;
        public static const _EShowAreaActiveExplorer:int = 256;
        public static const _EShowAreaMiddleDownEx:int = 512;
        public static const _EShowAreaRollShow:int = 1024;
        public static const _EShowAreaCursor:int = 2048;
        public static const _EShowAreaFightInfo:int = 4096;

        public function EShowArea(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeShort(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EShowArea
        {
            return new EShowArea(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EShowArea
        {
            var _loc_2:* = param1.readShort();
            if (_loc_2 < 0 || _loc_2 >= 4097)
            {
                throw new MarshalException();
            }
            return EShowArea.convert(_loc_2);
        }// end function

    }
}
